<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript" src="../lib/jquery/jquery-1.11.1.js" ></script>
		<script type="text/javascript" src="../lib/layer/layer.js" ></script>
		<script type="text/javascript">
			layer.ready(function(){
				layer.open({
					type : 0,
					btn : ['按钮1','按钮2','按钮3'],
					yes : function(index,layero){
						console.log('第一个按钮');
					},
					btn2 : function(){
						console.log('第二个按钮');
						return false;
					},
					btn3 : function(index,layero){
						console.log('第三个按钮');
						layer.close(index);
					},
					cancel : function(index,layero){
						if(confirm('您确认要关闭吗?')){
							layer.close(index);
						}
					}
				})
			});
			
		</script>
	</body>
</html>
